package com.lc.feign;

import com.lc.feign.hystrix.CustomerFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Author:LiChuang
 * Date: 2022/8/1 10:14
 */
@FeignClient(value = "provider-service", fallback = CustomerFeignHystrix.class)//fallback添加回滚的熔断服务类
public interface CustomerFeign {

    @GetMapping("/provider1")
    public String provider1();
}
